#pragma once

#include <struct.h>
#include "WorldGuildCommon.h"

class WorldGuildMember
{
	__DECL_GUILDPOOL(WorldGuildMember)
public:
	WorldGuildMember(void);
	virtual ~WorldGuildMember(void);

	VOID Init( const GUILD_MEMBER_INFO & IN rInfo );
	VOID Release(){}
	inline CHARGUID GetCharGuid() { return m_Info.m_CharGuid;	}
	inline TCHAR* GetCharName() { return m_Info.m_tszCharName; }

	inline VOID SetOnline( BYTE byOnline = 1 ) { m_Info.m_byIsLogin = byOnline; }
	inline BOOL IsOnline()	{ return m_Info.m_byIsLogin; }
	inline GUILD_MEMBER_INFO &GetMemberInfo() { return m_Info; }
	VOID GetPacketInfo(PACKET_FOR_GUILD_MEMBER& MemberInfo);

private:
	GUILD_MEMBER_INFO m_Info;
};
